<!DOCTYPE html>
<html lang="en"  xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <title>做题页面</title>
    <link rel="shortcut icon" href="../static/favicon.ico"/>
    <link href="../static/css/bootstrap.min.css?v=3.3.6" rel="stylesheet"/>
    <link href="../static/css/font-awesome.css?v=4.4.0" rel="stylesheet"/>
    <link href="../static/css/animate.css" rel="stylesheet"/>
    <link href="../static/css/style.css?v=4.1.0" rel="stylesheet"/>
    <!--    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"-->
</head>
<style>
    #btnInfo{
        background-color: rgb(91,192,222);
        width: 130px;
        height: 80px;
        font-size: 20px;
        display: block;
        margin: 0 auto;
    }
    .form-group{
        font-size: 15px;
    }
</style>
<body>
<h1 class="text-info" style="text-align: center"> 欢迎来到口算练习系统! </h1>
<div class="w">


        <form method="post" th:action="@{/submitSingleProblem(title=${errorProblem.title},createTime=${errorProblem.createTime})}" id="frm" name="myform" onsubmit="return CheckPost();">

            <div class="form-group">
                <label  th:text="${errorProblem.title}" class="col-md-2 control-label">111</label>
                <div class="col-md-2">
                    <input placeholder="请输入您的答案" name="answer" >

                </div>
<!--                <input type="hidden" th:text="${errorProblem.createTime}" name="createTime">-->
<!--                <input type="hidden" th:text="${errorProblem.title}" name="title">-->
            </div>
            <button  id="btnInfo" type="submit">提交</button>
        </form>




</div>
<script>
    function CheckPost()
    {
        if (myform.answer.value=="")
        {
            alert("作答不能为空！！！");
            myform.answer.focus();
            return false;
        }

    }

</script>
</body>
</html>